#ifndef COLORDIALOG_H
#define COLORDIALOG_H

#include <QtGui/QDialog>

namespace Ui {
    class ColorDialog;
}

class ColorDialog : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(ColorDialog)
public:
    explicit ColorDialog(QWidget *parent = 0);
    virtual ~ColorDialog();

    // Getter
    int getColor();

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::ColorDialog *m_ui;

    int color;

private slots:
    void on_btnBlack_clicked();
    void on_btnWhite_clicked();
    void on_btnMagenta_clicked();
    void on_btnCyan_clicked();
    void on_btnBlue_clicked();
    void on_btnYellow_clicked();
    void on_btnGreen_clicked();
    void on_btnRed_clicked();
};

#endif // COLORDIALOG_H
